<!--<link rel="stylesheet" href="module_Blog/blog.css" />-->
<div id="blog" class="module">

	<div class="publish_div">
		<h3>有什么新鲜事想告诉大家？</h3>
		<!--<textarea id="publish_content"></textarea>-->
		<form id="form_publish_log" enctype="multipart/form-data">
			<textarea id="publish_content" name="publish_content"></textarea>
			<a href="javascript:;" class="a-upload">
				<input type="file" name="pic" id="pic" multiple="multiple" accept="image/gif, image/jpeg" />图片
			</a>

			<input class="face" type="button" value="表情">
			<input type="text" name='type' value="form_publish_log" style="display: none;" />

			<!--<input type="submit" value="发布"/>-->
		</form>
		<button id="publish_btn">发布</button>
		<div id="smallimg">
			<p class="smallimg_num">共
				<span class="smallimg_sum"></span> 张，还能上传
				<span class="smallimg_remain"></span> 张
				<span class="delete_allsImg_icon">
					    		<!--<img class="delete_allsImg_icon" src="Images/Error.png">-->
					    		取消上传
					    	</span>
			</p>
			<ul>
				<li class='add_smallimg'><span>+</span></li>
			</ul>
		</div>
		<div style="clear: both;"></div>
	</div>
	<!--<div id="" style="width: 100%;height: 60px;background: white;margin: 20px 0;">
				小导航
			</div>-->
	<ul class="log_list">

	</ul>
</div>

<script type="text/template" id="tpl_blog">

	<% for(var i = 0; i < result.length; i++) { 
				var item = result[i];%>
	<li class="log_li">
		<a class="Anchor" name=<%=item.log_id%>></a>
		<!--锚点-->
		<div class="user_info">
			<!--<img src="images/webwxgetmsgimg.jpg" />-->
			<img src="MainImages/1476782242219.jpg" />
			<div class="user_info_right">
				<span class="log_user_name"><%= item.user_name %></span>
				<span class="log_date"><%= item.log_date %></span>
			</div>
		</div>
		<div class="delete_log_icon">删除</div>
		<div class='log_content'>
			<p>
				<%= item.log_content %>
			</p>
			<!--<img style="height: 100px;margin: 10px;" src="http://localhost:8080/blog/ServerJS/pic/1476925814352.jpg">-->
			<!--<img src="http://localhost:8080/blog/ServerJS/pic/1476935500881.jpg" />-->
			<!--<p><%=item.log_img%></p>-->
			<% if(item.log_img!=""){ %>
			<ul class="log_img_ul">
				<%  var img_paths = item.log_img.split(",");						    
							for(var j=0;j< img_paths.length;j++){								
								img_paths[j] = 'http://' + window.location.host + img_paths[j];%>
				<li class="log_img_li">
					<img class="log_img" src=<%=img_paths[j]%> />
				</li>
				<%}%>
			</ul>
			<% }%>
			<div class="big_img_div">
				
			</div>
			<!--<img class="log_img" style="display: <%=item.show_img%>;" src=<%=item.log_img%>>-->
		</div>
		<p class="comment_btn">评论
			<%= item.com_num %>
		</p>
		<div class="comment_div">
		</div>
	</li>
	<% } %>

</script>

<script type="text/template" id="tpl_comment">

	<div>
		<input type="text" name="comment_content" class="comment_content" />
		<button class="send_comment_btn">评论</button>
	</div>
	<ul>
		<% for(var i=0;i<result.length;i++){ %>
		<% var item = result[i] %>
		<li class="comment_li">
			<span class="comment_username">
						<%=item.user_name%>
					</span>
			<span>:</span>
			<span>
						<%=item.comment_content%>
					</span>
		</li>
		<% } %>
	</ul>

</script>

<!--放大图片的tpl-->
<script type='text/template' id="big_img_tpl">

		<div class='crrent_img_div'>
			<img class='currentt_img' src=<%=obj.currenttSrc%> />
		</div>
		<div class='thumbnail'>
			<ul>
				<%  for(var i=0;i<obj.arr_imgSrc.length;i++){ %>
				<%  var item = obj.arr_imgSrc[i] %>
				<li class='thumbnail_li'>
					<img class='thumbnail_img' src=<%=item%> />
				</li>
				<% } %>
			</ul>
		</div>

</script>

<div class="popup">

	<div class="popup_c">
		<div class="popup_word"></div>
	</div>

</div>